import React from 'react'

import styles from './index.less';

export default function CommonCard(props: any) {
  const { title = "test", width = 250, height = 400, children } = props;
  return (
    <div className={styles.commonCard} style={{width, height}}>
      <div className={styles.cardTitle}>
        {title}
      </div>
      <div className={styles.cardContainer} style={{height: height - 36}}>
        {children}
      </div>
    </div>
  )
}
